#!/bin/sh
# ExMon startup script
case "$1" in
	'start')
		if [ -x /usr/local/bin/ExMonScanner ]; then
			echo -n "Starting ExMonScanner: "
			/usr/local/bin/ExMonScanner
		fi
		;;
	'stop')
		if [ -e /var/tmp/exmon.pid ]; then
			echo -n "Shutting down ExMonScanner"
			kill -TERM `cat /var/tmp/exmon.pid`
		fi
		;;
	*)
		echo "usage: $0 {start|stop}"
		;;
esac
